package hzjbbis.framework.workflow.util.serializer;

import java.util.HashMap;
import java.util.Map;

public class SerializerFactory {
    public static final String DATE_TYPE = "DATE";
    public static final String STRING_TYPE = "STRING";
    public static final String TEXT_TYPE = "TEXT";
    
    private static final Map serializers = new HashMap();
    static {
        serializers.put(DATE_TYPE, new DateSerializer());
        serializers.put(STRING_TYPE, new StringSerializer());
        serializers.put(TEXT_TYPE, new StringSerializer());
    }

    public static Serializer getSerializer(String attributeType) {
        return (Serializer) serializers.get(attributeType);
    }
}
